/**
 * @description 获取系统初始化设置的参数
 * @author xunzhaotech
 * @date 2019-05-24
 * @param{设备}
 * @param{}
 */
const getters = {
  // 判断设备类型
  device: state => state.app.device,
  // 获取站点基本信息
  base: state => state.app.base,
  // 设置主站点颜色
  color: state => state.app.color,
  // 是否启用缓存
  keepAlive: state => state.app.keepAlive,
  // 语言设置
  locale: state => state.app.locale,
  // 主色调设置
  primaryColor: state => state.app.primaryColor,
  // token设置
  token: state => state.app.token,
  // 头像设置
  avatar: state => state.app.avatar,
  nickname: state => state.app.nickname,
  welcome: state => state.app.welcome,
  roles: state => state.app.roles,
  userInfo: state => state.app.userInfo,
  addRouters: state => state.app.addRouters,
  multiTab: state => state.app.multiTab,
  theme: state => state.app.theme,
  layoutMode: state => state.app.layoutMode,
  navTheme: state => state.app.navTheme,
  colorWeak: state => state.app.colorWeak,
  fixedHeader: state => state.app.fixedHeader,
  fixSiderbar: state => state.app.fixSiderbar,
  fixSidebar: state => state.app.fixSidebar,
  contentWidth: state => state.app.contentWidth,
  autoHideHeader: state => state.app.autoHideHeader,
  sidebarOpened: state => state.app.sidebarOpened,
  isCollapse: state => state.app.isCollapse,
  isFullScren: state => state.app.isFullScren,
  isShade: state => state.app.isShade,
  isLock: state => state.app.isLock,
  showTag: state => state.app.showTag,
  showDebug: state => state.app.showDebug,
  showCollapse: state => state.app.showCollapse,
  showSearch: state => state.app.showSearch,
  showLock: state => state.app.showLock,
  showFullScren: state => state.app.showFullScren,
  showTheme: state => state.app.showTheme,
  showColor: state => state.app.showColor,
  showMenu: state => state.app.showMenu,
  themeName: state => state.app.themeName,
  lockPasswd: state => state.app.lockPasswd,
  screen: state => state.app.screen,
  jobTitle: state => state.jobTitle + 'developer'
}
// 导出
export default getters
